@import "./variable";

.app-container {
  height: 100%;
  position: relative;
  .page-content {
    position: absolute;
    left: 240px;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: hidden;
    transition: left 0.3s ease-in-out;
    &.content-collapse {
      left: 64px;
    }
  }
  .content-box {
    background: #f2f2f2;
    height: calc(100% - 100px);
    overflow-y: auto;
    padding: 10px;
    &.curmb {
      height: calc(100% - 60px);
    }
    .page-main {
      min-height: 200px;
      background: $white;
      padding: 10px 20px;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
    }
  }
  .settings-button {
    position: fixed;
    right: 0;
    top: 55%;
    font-size:18px;
    background-color: $blue;
    z-index: 10;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: $white;
    cursor: pointer;
  }
}
.setting-panel .el-drawer__header {
  font-size: 18px;
  padding: 20px 20px 0;
}
.el-pagination {
  text-align: right;
  margin-top: 30px;
}
.highlight {
  color: #fbff16;
  font-weight: bold;
}
.el-date-editor.el-input, .el-date-editor.el-input__inner {
  width: 100%;
}
.del-text {
  margin: 0 1px;
  background: #f7f7f7;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  border: 1px solid #eee;
}
.log-main {
  .el-icon-loading {
    font-size: 24px;
  }
}
.log-box {
  background: #333;
  min-height: 100px;
  max-height: 400px;
  color: #f0f0f0;
  overflow-y: scroll;
  font-size: 14px;
  line-height: 24px;
  padding: 20px;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 3px;
  margin-top: 22px;
}
.load-last {
  text-align: center;
  color: #999;
  margin-bottom: 10px;
}
.log-loading {
  position: relative;
}
.btn-text-red {
  color: #F56C6C;
  &:hover, &:focus {
    color: #f78989;
  }
  &:active {
    color: #dd6161;
  }
}
.md-rt-20{
  margin-right: 20px;
}
.pg-canvas {
  position: absolute;
  z-index: 1;
}
.loading-svg {
  width: 100%;
  height: 100%;
  -webkit-perspective: 600;
  perspective: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  svg {
    width: 240px;
    height: 240px;
  }
}
.button-group {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f2f2;
  height: 42px;
  line-height: 32px;
  .route-name {
    border-right: 1px solid $dark-gray;
    padding-right: 20px;
    font-size: 16px;
    margin-right: 20px;
    line-height: 29px;
  }
}
.detail-back {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f2f2;
  height: 42px;
  line-height: 32px;
  font-size: 16px;
  a {
    color: #218ff0;
    border-right: 1px solid $dark-gray;
    padding-right: 20px;
    cursor: pointer;
    i {
      margin-right: 10px;
    }
  }
  span {
    margin-left: 20px;
    color: $gray;
  }
}
.el-button {
  [class^="fa fa-"] {
    margin-right: 5px;
  }
}
input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
      -webkit-appearance: none;
  }
  input[type="number"]{
      -moz-appearance: textfield;
  }
// 复写element样式
.el-table th {
  background: #e8e8eb;
  color: #323232;
  padding: 0;
  height: 40px;
}
.el-table td {
  height: 50px;
  padding: 0;
}
.el-button--small {
  font-size: 13px;
  padding: 8px 15px;
}
.el-table {
  color: $gray;
}
.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #f7f7fa;
}
.el-table--enable-row-hover .el-table__body tr:hover>td {
  background: #e6f4ff;
}
.label-first {
  .el-col:first-child .el-form-item__label {
    text-align: left;
  }
  .label-lang {
    .el-form-item__label {
      font-size: 12px;
    }
  }
}
.el-dialog{
  .el-dialog__header{
    background: #e6e6e6;
  }
  .el-dialog__footer{
    button{
      font-size: 13px;
      padding:8px 15px;
    }
  }
  .el-form{
    .dc-ip-input{
      span{
        input{
          width: 22% !important
        }
      }
    }
  }
}
/**
  处理当表的列过多时，表头和内容不对齐的问题
 */
body .el-table th.gutter {
  display: table-cell !important
}
